package com.ktjy.service;

import com.ktjy.entity.Supplier;
import com.ktjy.mapper.SupplierMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;

@Service("supplierService")
@Transactional
public class SupplierServiceImpl implements SupplierService {
    @Autowired
    private SupplierMapper supplierMapper;


    @Override
    public int delete(int id) {
        return supplierMapper.delete(id);
    }

    @Override
    public int update(Supplier supplier) {
        return supplierMapper.update(supplier);
    }
}
